
package com.jf.cloud.api.multishop.feign;

import com.jf.cloud.api.multishop.bo.ShopWalletBO;
import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

/**
 * @author zz
 * @date 2022/6/30 16:42
 */
@FeignClient(value = "jfcloud-multishop",contextId = "shopWalletLog")
public interface ShopWalletLogFeignClient {

    /**
     * 获取充值金额
     * @param shopWalletLogId 充值记录id
     * @return
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/insider/shopWalletLog/getPayAmount")
    ServerResponseEntity<Long> getPayAmount(@RequestParam("shopWalletLogId") Long shopWalletLogId);

    /**
     * 获取充值记录是否已经支付
     * @param shopWalletLogId 充值记录id
     * @return
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/insider/shopWalletLog/getIsPay")
    ServerResponseEntity<Integer> getIsPay(@RequestParam("shopWalletLogId") Long shopWalletLogId);

//    @GetMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/insider/shopWalletLog/getQrCodeStatisticsByShopIdAndDateRange")
//    ServerResponseEntity<ShopWalletBO> getQrCodeStatisticsByShopIdAndDateRange( @RequestParam("startTime") Date startTime, @RequestParam("endTime") Date endTime);

}
